﻿<%@ Page Language="C#" MasterPageFile="~/MasterPages/RestaurantMaster.master" CodeFile="basicinfo.aspx.cs" Inherits="MasterPages_Default4" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Restaurant_ContentPlaceHolder" Runat="Server">
<div id="restaurant_basicinfo">
     <table width="300px" border="2px">
            <tr>
                <td style="text-align:right"><asp:Label ID="username_lable" runat="server" Text="餐厅主名"></asp:Label></td>
                <td style="width:75%;text-align:left">
                    <asp:TextBox ID="username_textbox" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="username_required_validator" ControlToValidate="username_textbox"
                    runat="server" ValidationGroup="subnmit_group" ErrorMessage="*"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td style="text-align:right"><asp:Label ID="pwd_lable" runat="server" Text="密 码"></asp:Label></td>
                <td style="width:75%;text-align:left">
                    <asp:TextBox ID="pwd_textbox" runat="server" TextMode="Password"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="pwd_required_validator" ControlToValidate="pwd_textbox"
                    runat="server" ValidationGroup="subnmit_group" ErrorMessage="输入新密码"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td style="text-align:right"><asp:Label ID="repwd_lable" runat="server" Text="确认密码"></asp:Label></td>
                <td style="width:75%;text-align:left">
                    <asp:TextBox ID="repwd_textbox" runat="server" TextMode="Password"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="repwd_required_validator" ControlToValidate="repwd_textbox"
                    runat="server" ValidationGroup="subnmit_group" ErrorMessage="*"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td style="text-align:right"><asp:Label ID="mobile_lable" runat="server" Text="手 机"></asp:Label></td>
                <td style="width:75%;text-align:left">
                    <asp:TextBox ID="mobile_textbox" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="mobile_required_validator" ControlToValidate="mobile_textbox"
                    runat="server" ValidationGroup="subnmit_group" ErrorMessage="*"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="mobile_regex_validator" ControlToValidate="mobile_textbox"
                    runat="server" ValidationGroup="subnmit_group" ErrorMessage="*" ValidationExpression="(\d{11})">
                    </asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td style="text-align:right"><asp:Label ID="identity_card_lable" runat="server" Text="身份证号"></asp:Label></td>
                <td style="width:75%;text-align:left">
                    <asp:TextBox ID="idcard_textbox" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td style="text-align:right"><asp:Label ID="restaurant_name_lable" runat="server" Text="餐厅名"></asp:Label></td>
                <td style="width:75%;text-align:left">
                    <asp:TextBox ID="restaurant_name_textbox" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="restaurant_name_required_validator" ControlToValidate="restaurant_name_textbox"
                    runat="server" ValidationGroup="subnmit_group" ErrorMessage="*"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td style="text-align:right"><asp:Label ID="address_lable" runat="server" Text="餐厅地址"></asp:Label></td>
                <td style="width:75%;text-align:left">
                    <asp:TextBox ID="address_textbox" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="address_required_validator" ControlToValidate="address_textbox"
                    runat="server" ValidationGroup="subnmit_group" ErrorMessage="*"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td style="text-align:right"><asp:Label ID="tel_lable" runat="server" Text="餐厅电话"></asp:Label></td>
                <td style="width:75%;text-align:left">
                    <asp:TextBox ID="tel_textbox" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td style="text-align:right"><asp:Label ID="start_time_lable" runat="server" Text="营业始"></asp:Label></td>
                <td style="width:75%;text-align:left">
                    <asp:TextBox ID="start_time_textbox" runat="server"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="start_time_regex_validator" runat="server" ValidationGroup="subnmit_group"
                     ControlToValidate="start_time_textbox" ErrorMessage="如08:00:00" ValidationExpression="(\d{1,2}:\d{1,2}(:\d{1,2}){0,1})"
                     ></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td style="text-align:right"><asp:Label ID="close_time_lable" runat="server" Text="营业到"></asp:Label></td>
                <td style="width:75%;text-align:left">
                    <asp:TextBox ID="close_time_textbox" runat="server"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="close_time_regex_validator" runat="server" ValidationGroup="subnmit_group"
                     ControlToValidate="close_time_textbox" ErrorMessage="如23:00:00" ValidationExpression="(\d{1,2}:\d{1,2}(:\d{1,2}){0,1})"
                     ></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td style="text-align:right" colspan="2"><asp:TextBox ID="adver_textbox" runat="server" 
                Width="100%" TextMode="multiLine" Text="广告语:质量第一，顾客至上"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td style="text-align:right"><asp:Label ID="state_lable" runat="server" Text="营业状态"></asp:Label></td>
                <td style="text-align:left;width:75%"><asp:DropDownList ID="state_dropdownlist" runat="server">
                  <asp:ListItem Value="0">暂不营业</asp:ListItem>
                  <asp:ListItem Value="1">开始营业</asp:ListItem>
                </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td><asp:Button ID="editcancel_button" runat="server" OnClick="OnEditCancelBtnClick" Text="编 辑"
                    /></td>
                <td style="text-align:left"><asp:Button ID="submit_button" runat="server" OnClick="OnSubmitBtnClick" Text="提 交"
                    Enabled="false" ValidationGroup="subnmit_group" /></td>
            </tr>
            <tr>
                <td colspan="2" style="text-align:left"><asp:Label ID="notice_lable" runat="server"></asp:Label></td>
            </tr>
        </table>
</div>
</asp:Content>

